package STUDENT.TranNamAnh.OOPs.baitap3;

import java.util.Scanner;

public class Views {
	public static void main(String[] agrs){
		Scanner sc = new Scanner(System.in);
		Object obj = new Object();
		Controllers objctr = new Controllers();
		boolean isReal = true;
		String dog;
		String cat;
		
		do{
			do{
				System.out.println("Nhap so kg can doi : ");
				dog = sc.nextLine();
				obj.setSoKg(Double.parseDouble(dog));
				System.out.println("So pound tuong ung la : " + objctr.ctrPound(obj));
				
			}while(dog.isEmpty());
			System.out.println("Ban muon doi tiep k ?   y/n ");
			cat = sc.nextLine();
			if(cat.equals("y"))
				isReal = true;
			else
				isReal = false;
				System.out.println("Cam on da su dung dich vu ");
			
		}while(isReal == true );
	}

}
